<?php

/**
 * @author HungPV <phamvanhung0818@gmail.com>
 * @todo manager front controller
 */

class front extends MX_Controller{
    function __construct() {
        parent::__construct();
        $this->load->model('category');
    }
    
    function menu_top(){
        $categories = $this->category->get();
        $data['categories'] = $categories;
        
        $pcategories = $this->category->get(-1,-1,0,'project');
        $data['pcategories'] = $pcategories;
        
        $this->load->view('front_menu_top',$data);
    }
}
?>
